package cn.wd.user.service;


import cn.wd.model.LoginInfo;
import cn.wd.user.domain.entity.User;
import cn.wd.user.qo.UserQueryObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IUserService extends IService<User> {

    User selectUsername(String username);

    void changeStatus(Long id, Integer status);

    void logicDeleteById(Long id, boolean deleted);

    void restPassword(String token, String newPassword, String oldPassword);

    LoginInfo getLoginInfo(String token);

    String login(String username, String password);

    Page<User> listUserPage(UserQueryObject qo);
}
